package com.jinmdz.app.dao.base;

import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * item基类
 *
 * @author LiCongLu
 * @date 2019-12-30 11:14
 */
@ApiModel(value = "item基类", description = "item基类")
public class BaseItem extends BaseBean {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键", name = "id", position = 0)
    private Integer id;

    /**
     * 数据版本号
     */
    @ApiModelProperty(value = "数据版本号", name = "version", position = 999)
    private Long version;

    public Integer getId() {
        return id;
    }

    public BaseItem setId(Integer id) {
        this.id = id;
        return this;
    }

    public Long getVersion() {
        return version;
    }

    public BaseItem setVersion(Long version) {
        this.version = version;
        return this;
    }
}
